package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.StatisticsDao;
import com.itheima.pojo.Statistics;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

@Service(interfaceClass = StatisticsService.class)
@Transactional
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private StatisticsDao statisticsDao;

    @Override
    public void submitInfo(Statistics statistics) {
        statisticsDao.addInfo(statistics);
    }
}
